
#ifndef			GOBJECT_HH_
# define		GOBJECT_HH_

#include		<iostream>
#include		<SFML/Graphics.hpp>

#include		"GObject.hh"
#include		"IGUI.hh"

class			GObject
{
public:
  GObject(sf::Image &img);
  GObject(sf::Image &img, int);
  ~GObject() {}
  void			draw(sf::RenderWindow&) const;
  void			setState(int);
  void			setPos(int, int);
  void			setPos(int, int, int, int);
  void			resize(int, int);
  void			setId(int);
  int			getId(void) const;
  int			getX(void) const;
  int			getY(void) const;
  int			getW(void) const;
  int			getH(void) const;
  void			setFocus(IGUI::e_context);
  IGUI::e_context	getFocus(void) const;
  void			incrState(void);
private:
  int			State;
  sf::Image		&Img;
  sf::Sprite		Sprite;
  int			id;
  IGUI::e_context	focus;
  int			incr;
};

#endif			/* !GOBJECT */
